import { createSSRApp } from "vue";
import App from "./App.vue";
import * as Pinia from "pinia";
import Share from "@/utils/share";
import VConsole from 'vconsole'


export function createApp() {
	const app = createSSRApp(App);
	const vConsole = new VConsole();

	app.use(Pinia.createPinia());

	app.mixin(Share); // 混入全局分享
	return {
		app,
		Pinia,
	};
}